﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>MyCompany.MyProject</Solution>
// <Project>MyCompany.MyProject.Application</Project>
// <FileName>AddressOutDto.cs</FileName>
// <CreateTime>2017-04-23 22:09</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-23 22:09" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using Abp.AutoMapper;

namespace Vecen.BangChuang.BangChuang.Areas.DomainDtos {
    /// <summary>
    /// 地址输出结构
    /// </summary>
    [AutoMapFrom(typeof(FullCity))]
    public class FullCityOutDto {

        /// <summary>
        /// 省
        /// </summary>
        public long ProvinceId { get; set; }

        /// <summary>
        /// 省名
        /// </summary>
        public string ProvinceName { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public long CityId { get; set; }

        /// <summary>
        /// 市名
        /// </summary>
        public string CityName { get; set; }

        /// <summary>
        /// 区县
        /// </summary>
        public long DistrictId { get; set; }


        /// <summary>
        /// 区县名
        /// </summary>
        public string DistrictName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToString() {
            return ProvinceName + "" + CityName + DistrictName;
        }
    }
}